/*
 * @Author: zk
 * @Date: 2021-01-19 14:03:40
 * @LastEditors: zk
 * @LastEditTime: 2021-01-20 16:17:12
 * @Description:
 */
const Mock = require('mockjs')
const personList = []
const count = 20
for (let i = 0; i < count; i++) {
  personList.push(Mock.mock({
    'name|+1': '@cname',
    'sex|0-1': 0,
    'age|0-100': 20,
    'birthData': '@date("yyyy-MM-dd")',
    'identityNum': '@id',
    'telephoneNum': /^1[3-9]\d{9}$/,
    'ctctName': '@cname',
    'ctctNum': /^1[3-9]\d{9}$/,
    'curAddr': '@county(true)',
    'responsibleDoctor': '@cname',
    'fmlyInfo|0-4': 0,
    'fileDoctor': '@cname',
    'fileCreationDt': '@date("yyyy-MM-dd")',
    'personalFileNum|100000000-999999999': 1,
    'fmlyFileNum|100000000-999999999': 1,
    'healthtestList|0-20': [{
      'name': '@/name',
      'sex': '@/sex',
      'age': '@/age',
      'birthData': '@/birthData',
      'identityNum': '@/identityNum',
      'telephoneNum': '@/telephoneNum',
      'ctctName': '@/ctctName',
      'ctctNum': '@/ctctNum'
    }]
  }))
}
export { personList }
